/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.entidades;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author JAVIER
 */
@Entity
@Table(name = "jugadas")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Jugadas.findAll", query = "SELECT j FROM Jugadas j"),
    @NamedQuery(name = "Jugadas.findByIdJugada", query = "SELECT j FROM Jugadas j WHERE j.idJugada = :idJugada"),
    @NamedQuery(name = "Jugadas.findByNum1", query = "SELECT j FROM Jugadas j WHERE j.num1 = :num1"),
    @NamedQuery(name = "Jugadas.findByNum2", query = "SELECT j FROM Jugadas j WHERE j.num2 = :num2"),
    @NamedQuery(name = "Jugadas.findByNum3", query = "SELECT j FROM Jugadas j WHERE j.num3 = :num3"),
    @NamedQuery(name = "Jugadas.findByNum4", query = "SELECT j FROM Jugadas j WHERE j.num4 = :num4"),
    @NamedQuery(name = "Jugadas.findByNum5", query = "SELECT j FROM Jugadas j WHERE j.num5 = :num5"),
    @NamedQuery(name = "Jugadas.findByEstre1", query = "SELECT j FROM Jugadas j WHERE j.estre1 = :estre1"),
    @NamedQuery(name = "Jugadas.findByEstre2", query = "SELECT j FROM Jugadas j WHERE j.estre2 = :estre2")})
public class Jugadas implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id_jugada")
    private Integer idJugada;
    @Column(name = "num1")
    private Integer num1;
    @Column(name = "num2")
    private Integer num2;
    @Column(name = "num3")
    private Integer num3;
    @Column(name = "num4")
    private Integer num4;
    @Column(name = "num5")
    private Integer num5;
    @Column(name = "estre1")
    private Integer estre1;
    @Column(name = "estre2")
    private Integer estre2;

    public Jugadas() {
    }

    public Jugadas(Integer idJugada) {
        this.idJugada = idJugada;
    }

    public Integer getIdJugada() {
        return idJugada;
    }

    public void setIdJugada(Integer idJugada) {
        this.idJugada = idJugada;
    }

    public Integer getNum1() {
        return num1;
    }

    public void setNum1(Integer num1) {
        this.num1 = num1;
    }

    public Integer getNum2() {
        return num2;
    }

    public void setNum2(Integer num2) {
        this.num2 = num2;
    }

    public Integer getNum3() {
        return num3;
    }

    public void setNum3(Integer num3) {
        this.num3 = num3;
    }

    public Integer getNum4() {
        return num4;
    }

    public void setNum4(Integer num4) {
        this.num4 = num4;
    }

    public Integer getNum5() {
        return num5;
    }

    public void setNum5(Integer num5) {
        this.num5 = num5;
    }

    public Integer getEstre1() {
        return estre1;
    }

    public void setEstre1(Integer estre1) {
        this.estre1 = estre1;
    }

    public Integer getEstre2() {
        return estre2;
    }

    public void setEstre2(Integer estre2) {
        this.estre2 = estre2;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idJugada != null ? idJugada.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Jugadas)) {
            return false;
        }
        Jugadas other = (Jugadas) object;
        if ((this.idJugada == null && other.idJugada != null) || (this.idJugada != null && !this.idJugada.equals(other.idJugada))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.entidades.Jugadas[ idJugada=" + idJugada + " ]";
    }
    
}
